package cn.qayy.dto;
/***
 * 用于处理流向里的协议id，在协议表里不存在的情况
 * @author jobs1127
 *
 */
public class PolicyIdItem {
	private String pid;//流向id
	private String poid;//协议id
	public PolicyIdItem() {
		super();
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getPoid() {
		return poid;
	}
	public void setPoid(String poid) {
		this.poid = poid;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((poid == null) ? 0 : poid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PolicyIdItem other = (PolicyIdItem) obj;
		if (poid == null) {
			if (other.poid != null)
				return false;
		} else if (!poid.equals(other.poid))
			return false;
		return true;
	}
	public PolicyIdItem(String pid, String poid) {
		super();
		this.pid = pid;
		this.poid = poid;
	}
	@Override
	public String toString() {
		return "PolicyIdItem [pid=" + pid + ", poid=" + poid + "]";
	}

}
